<?php
date_default_timezone_set('Asia/Tokyo');
error_reporting(E_ALL ^E_DEPRECATED ^E_STRICT);
// Define path to application directory
if  (PATH_SEPARATOR == ';') {
	defined('APPLICATION_PATH')
    	|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
} else {
	defined('APPLICATION_PATH')
		|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
}
// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

require_once dirname(__FILE__) . '/include_path_env.php';
//require_once APPLICATION_PATH . '/configs/analyzer.php';

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();